package com.example.mystais_pulugin.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.example.mystais_pulugin.dao.userInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserInfoMapper extends BaseMapper<userInfo> {

  //EW 即 EntityWrapper 的缩写，早期 MyBatis-Plus 版本的命名）。
  @Select("select * from user_info  ${ew.CustomSqlSegment}")
  public List<userInfo> customselect(@Param(Constants.WRAPPER)Wrapper<userInfo> wrapper);

  public List<userInfo> customselectxml(@Param(Constants.WRAPPER)QueryWrapper<userInfo> queryWrapper);
}
